/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 */

//! Linux dirent64 helpers

use std::cmp::Ordering;
use std::ptr;

use libc::strlen;
use serde::Deserialize;
use serde::Serialize;

#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
pub struct Dirent64<'a> {
    pub(crate) ino: u64,
    pub(crate) off: i64,
    pub(crate) ty: u8,
    pub(crate) reclen: u16,
    /// null terminated c string, NB: multiple null bytes are expected!
    /// We do not use the std::ffi::CStr because it enforces a check that
    /// there are no interior null bytes, while Linux's own implementation
    /// seems to provide multiple null bytes
    pub(crate) name: &'a [u8],
}

// sort by name, but "." < ".." <= ..
#[allow(clippy::non_canonical_partial_ord_impl)]
impl<'a> PartialOrd for Dirent64<'a> {
    fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
        if self.name == b".\0" {
            Some(Ordering::Less)
        } else if other.name == b".\0" {
            Some(Ordering::Greater)
        } else if self.name == b"..\0" {
            Some(Ordering::Less)
        } else if other.name == b"..\0" {
            Some(Ordering::Greater)
        } else {
            self.name.partial_cmp(other.name)
        }
    }
}

impl<'a> Ord for Dirent64<'a> {
    fn cmp(&self, other: &Self) -> Ordering {
        self.partial_cmp(other).unwrap()
    }
}

pub unsafe fn deserialize_dirents64(bytes: &[u8]) -> Vec<Dirent64> {
    let mut res = Vec::new();

    let dirp: *const u8 = bytes.as_ptr();
    let nb = bytes.len();
    let mut k = 0;

    while k < nb as isize {
        let dirp = dirp.offset(k);
        let mut j: isize = 0;
        let ino = ptr::read(dirp.offset(j).cast::<u64>());
        j += std::mem::size_of::<u64>() as isize;
        let off = ptr::read(dirp.offset(j).cast::<i64>());
        j += std::mem::size_of::<i64>() as isize;
        let reclen = ptr::read(dirp.offset(j).cast::<u16>());
        j += std::mem::size_of::<u16>() as isize;
        let ty = ptr::read(dirp.offset(j).cast::<u8>());
        j += std::mem::size_of::<u8>() as isize;
        let name = std::slice::from_raw_parts(dirp.offset(j), 1 + reclen as usize - j as usize);
        let ent = Dirent64 {
            ino,
            off,
            reclen,
            ty,
            name,
        };
        res.push(ent);
        k += reclen as isize;
    }
    res
}

pub unsafe fn serialize_dirents64(dents: &[Dirent64], bytes: &mut [u8]) -> usize {
    let nb = bytes.len();
    let mut k = 0;
    let mut i = 0;

    while k < nb as isize && i < dents.len() {
        let ent = &dents[i];
        let dirp = bytes.as_mut_ptr().offset(k);
        let mut j: isize = 0;
        ptr::write(dirp.offset(j).cast::<u64>(), ent.ino);
        j += std::mem::size_of::<u64>() as isize;
        ptr::write(dirp.offset(j).cast::<i64>(), ent.off);
        j += std::mem::size_of::<i64>() as isize;
        ptr::write(dirp.offset(j).cast::<u16>(), ent.reclen);
        j += std::mem::size_of::<u16>() as isize;
        ptr::write(dirp.offset(j).cast::<u8>(), ent.ty);
        j += std::mem::size_of::<u8>() as isize;
        let reclen = ent.reclen;
        ptr::copy_nonoverlapping(
            ent.name.as_ptr(),
            dirp.offset(j),
            // NOTE: name is null-terminated with the man page
            // explicitly warning against other methods to read
            // d_name besides strlen(): https://man7.org/linux/man-pages/man3/readdir.3.html
            strlen(ent.name.as_ptr() as *const i8),
        );
        k += reclen as isize;
        i += 1;
    }
    dents.len()
}

pub unsafe fn deserialize_dirents(bytes: &[u8]) -> Vec<Dirent64> {
    let mut res = Vec::new();

    let dirp: *const u8 = bytes.as_ptr();
    let nb = bytes.len();
    let mut k = 0;

    while k < nb as isize {
        let dirp = dirp.offset(k);
        let mut j: isize = 0;
        let ino = ptr::read(dirp.offset(j).cast::<u64>());
        j += std::mem::size_of::<u64>() as isize;
        let off = ptr::read(dirp.offset(j).cast::<i64>());
        j += std::mem::size_of::<i64>() as isize;
        let reclen = ptr::read(dirp.offset(j).cast::<u16>());
        j += std::mem::size_of::<u16>() as isize;
        let name = std::slice::from_raw_parts(dirp.offset(j), reclen as usize - j as usize);
        j = reclen as isize - 1;
        let ty = ptr::read(dirp.offset(j).cast::<u8>());
        let ent = Dirent64 {
            ino,
            off,
            reclen,
            ty,
            name,
        };
        res.push(ent);
        k += reclen as isize;
    }
    res
}

pub unsafe fn serialize_dirents(dents: &[Dirent64], bytes: &mut [u8]) -> usize {
    let nb = bytes.len();
    let mut k = 0;
    let mut i = 0;

    while k < nb as isize && i < dents.len() {
        let ent = &dents[i];
        let dirp = bytes.as_mut_ptr().offset(k);
        let mut j: isize = 0;
        ptr::write(dirp.offset(j).cast::<u64>(), ent.ino);
        j += std::mem::size_of::<u64>() as isize;
        ptr::write(dirp.offset(j).cast::<i64>(), ent.off);
        j += std::mem::size_of::<i64>() as isize;
        ptr::write(dirp.offset(j).cast::<u16>(), ent.reclen);
        j += std::mem::size_of::<u16>() as isize;
        let reclen = ent.reclen;
        ptr::copy_nonoverlapping(
            ent.name.as_ptr(),
            dirp.offset(j),
            strlen(ent.name.as_ptr() as *const i8),
        );
        j = reclen as isize - 1;
        ptr::write(dirp.offset(j).cast::<u8>(), ent.ty);
        k += reclen as isize;
        i += 1;
    }
    dents.len()
}

#[cfg(test)]
mod test {
    use super::*;

    #[repr(align(8))]
    struct Aligned<T>(T);

    // getdents from my homedir
    const HOME_DIRENTS: &[u8] = &Aligned([
        0xf2, 0x5b, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x04, 0x1f, 0x11, 0x79, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x2e, 0x2e, 0x00,
        0x00, 0x00, 0x04, 0x54, 0x5c, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x0a, 0x55, 0x5c, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x6c, 0x6f, 0x67, 0x73, 0x00, 0x0a, 0x58,
        0x5c, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x28, 0x00, 0x52, 0x45, 0x41, 0x44, 0x4d, 0x45, 0x2d, 0x64, 0x6f, 0x74, 0x73, 0x79, 0x6e,
        0x63, 0x2e, 0x74, 0x78, 0x74, 0x00, 0x00, 0x00, 0x0a, 0x62, 0x5c, 0x79, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x2e, 0x6c, 0x6f,
        0x67, 0x69, 0x6e, 0x6f, 0x75, 0x74, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x08, 0x37, 0x5d, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x2e, 0x73, 0x73, 0x68, 0x00, 0x04, 0x38, 0x5d,
        0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x2e, 0x73, 0x63, 0x6d, 0x2e, 0x73, 0x71, 0x6c, 0x69, 0x74, 0x65, 0x00, 0x00, 0x08,
        0x13, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x28, 0x00, 0x2e, 0x64, 0x6f, 0x74, 0x73, 0x79, 0x6e, 0x63, 0x2d, 0x6d, 0x65, 0x74,
        0x61, 0x64, 0x61, 0x74, 0x61, 0x00, 0x00, 0x00, 0x00, 0x08, 0xab, 0x5e, 0x79, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x62,
        0x61, 0x73, 0x68, 0x5f, 0x6c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x00, 0x08, 0xad, 0x5e, 0x79,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00,
        0x2e, 0x62, 0x61, 0x73, 0x68, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xb1, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x63, 0x6f, 0x6e, 0x66,
        0x69, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0xb8, 0x5e, 0x79, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x65, 0x6d,
        0x61, 0x63, 0x73, 0x2e, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0xba, 0x5e, 0x79, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e,
        0x68, 0x67, 0x72, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xbc, 0x5e,
        0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x2e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x72, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
        0xbe, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x20, 0x00, 0x2e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x08, 0xc0, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x73, 0x75, 0x62, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
        0x6e, 0x00, 0x00, 0x04, 0xca, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x74, 0x6d, 0x75, 0x78, 0x2e, 0x63, 0x6f,
        0x6e, 0x66, 0x00, 0x00, 0x00, 0x08, 0xcc, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x2e, 0x76, 0x69, 0x6d, 0x00, 0x04,
        0xcf, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x20, 0x00, 0x2e, 0x76, 0x69, 0x6d, 0x72, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x08, 0xd1, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x7a, 0x73, 0x68, 0x72, 0x63, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x08, 0xd3, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x61, 0x72, 0x63, 0x72, 0x63, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xd7, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x67, 0x6e, 0x75, 0x70, 0x67,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x1a, 0x62, 0x79, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x63, 0x6f, 0x6d,
        0x6d, 0x69, 0x74, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x00, 0x04, 0x79, 0x65, 0x79, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x66, 0x62,
        0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x21, 0x6e, 0x79,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00,
        0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x75,
        0xc0, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x20, 0x00, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x00, 0x00, 0x00,
        0x04, 0xc8, 0xc2, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x28, 0x00, 0x2e, 0x62, 0x61, 0x73, 0x68, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f,
        0x72, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x3b, 0xc3, 0x79, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x2e,
        0x64, 0x6f, 0x74, 0x73, 0x79, 0x6e, 0x63, 0x2d, 0x67, 0x65, 0x74, 0x2d, 0x73, 0x75, 0x63,
        0x63, 0x65, 0x73, 0x73, 0x00, 0x08, 0xa9, 0xc4, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x37,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x2e, 0x76, 0x73, 0x63, 0x6f, 0x64,
        0x65, 0x2d, 0x66, 0x62, 0x2d, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x00, 0x00, 0x00, 0x00,
        0x04, 0xb9, 0xc4, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x28, 0x00, 0x2e, 0x76, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x2d, 0x72, 0x65, 0x6d,
        0x6f, 0x74, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0xdc, 0x82, 0x7d, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x2e,
        0x76, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x2d, 0x66, 0x62, 0x2d, 0x69, 0x6e, 0x73, 0x69, 0x64,
        0x65, 0x72, 0x73, 0x00, 0x00, 0x04, 0xdd, 0xb7, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x67, 0x69, 0x74, 0x00, 0x00, 0x04,
        0x5b, 0xd9, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x6e, 0x66, 0x73, 0x00, 0x00, 0x0a, 0x5c, 0xd9, 0x82, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x70, 0x75, 0x62,
        0x6c, 0x69, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x6d, 0xd9, 0x82, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x74,
        0x65, 0x73, 0x74, 0x00, 0x04, 0x4d, 0xe2, 0x8f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb6, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x31, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xa0, 0xbc, 0x9c, 0x00, 0x00, 0x00, 0x00, 0x00,
        0xb7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x6c, 0x6f, 0x63, 0x61,
        0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x16, 0xbe, 0x9c, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x7b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x62, 0x75, 0x69,
        0x6c, 0x64, 0x2e, 0x6c, 0x6f, 0x67, 0x00, 0x00, 0x00, 0x00, 0x08, 0x07, 0x50, 0x14, 0x01,
        0x00, 0x00, 0x00, 0x00, 0x7c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x65,
        0x78, 0x74, 0x34, 0x2e, 0x69, 0x6d, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x38, 0x50,
        0x14, 0x01, 0x00, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
        0x00, 0x31, 0x33, 0x00, 0x00, 0x00, 0x04, 0x3f, 0xc1, 0x2a, 0x01, 0x00, 0x00, 0x00, 0x00,
        0xb9, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x74, 0x65, 0x73, 0x74, 0x2d,
        0x31, 0x37, 0x33, 0x36, 0x35, 0x38, 0x32, 0x00, 0x08, 0x36, 0x3b, 0x2b, 0x01, 0x00, 0x00,
        0x00, 0x00, 0xc8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x74, 0x65, 0x73,
        0x74, 0x2d, 0x31, 0x37, 0x34, 0x36, 0x37, 0x31, 0x33, 0x00, 0x08, 0x84, 0xd4, 0x2b, 0x01,
        0x00, 0x00, 0x00, 0x00, 0xc9, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e,
        0x63, 0x61, 0x72, 0x67, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x88, 0xd4,
        0x2b, 0x01, 0x00, 0x00, 0x00, 0x00, 0xca, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x2e, 0x7a, 0x73, 0x68, 0x65, 0x6e, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
        0x89, 0xd4, 0x2b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x20, 0x00, 0x2e, 0x72, 0x75, 0x73, 0x74, 0x75, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x04, 0xb6, 0x8e, 0x53, 0x01, 0x00, 0x00, 0x00, 0x00, 0x26, 0x02, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x20, 0x00, 0x33, 0x2e, 0x74, 0x78, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x08, 0x86, 0xbf, 0x53, 0x01, 0x00, 0x00, 0x00, 0x00, 0x2d, 0x02, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x61, 0x2e, 0x6f, 0x00, 0x00, 0x08, 0x20, 0xc5,
        0x6a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x2e, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x08,
        0x34, 0xc5, 0x6a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x5c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x32, 0x32, 0x00, 0x00, 0x00, 0x04, 0xd1, 0x4b, 0x7d, 0x01, 0x00, 0x00,
        0x00, 0x00, 0x7b, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x66, 0x61, 0x6b,
        0x65, 0x72, 0x6f, 0x6f, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x76, 0xb2, 0x9f, 0x01,
        0x00, 0x00, 0x00, 0x00, 0x94, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x72,
        0x70, 0x6d, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x4d, 0xb5,
        0xa7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x95, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28,
        0x00, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e, 0x31, 0x2e, 0x72, 0x70, 0x6d, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x78, 0xfe, 0xa7, 0x01, 0x00, 0x00, 0x00,
        0x00, 0x96, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x73, 0x79, 0x73, 0x74,
        0x65, 0x6d, 0x64, 0x2e, 0x32, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x08, 0x1b, 0x49, 0xa8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x97, 0x02, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e, 0x33,
        0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x67, 0x8e,
        0xa8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x98, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28,
        0x00, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e, 0x34, 0x2e, 0x72, 0x70, 0x6d, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x80, 0xdb, 0xa8, 0x01, 0x00, 0x00, 0x00,
        0x00, 0x99, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x73, 0x79, 0x73, 0x74,
        0x65, 0x6d, 0x64, 0x2e, 0x35, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x08, 0x38, 0x20, 0xa9, 0x01, 0x00, 0x00, 0x00, 0x00, 0xa6, 0x02, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e, 0x36,
        0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xc2, 0x82,
        0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0xa7, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
        0x00, 0x7a, 0x6c, 0x69, 0x62, 0x2d, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x2d, 0x31, 0x2e, 0x32,
        0x2e, 0x31, 0x31, 0x2d, 0x31, 0x36, 0x2e, 0x65, 0x6c, 0x38, 0x5f, 0x32, 0x2e, 0x78, 0x38,
        0x36, 0x5f, 0x36, 0x34, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x08, 0xe3, 0x82, 0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x02, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x18, 0x00, 0x7a, 0x6c, 0x00, 0x00, 0x00, 0x04, 0xe5, 0xa3, 0xb0, 0x01,
        0x00, 0x00, 0x00, 0x00, 0x3d, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e,
        0x77, 0x67, 0x65, 0x74, 0x2d, 0x68, 0x73, 0x74, 0x73, 0x00, 0x00, 0x00, 0x08, 0xf2, 0xa4,
        0xe2, 0x01, 0x00, 0x00, 0x00, 0x00, 0x44, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
        0x00, 0x7a, 0x7a, 0x7a, 0x00, 0x00, 0x04, 0x27, 0x78, 0xe6, 0x01, 0x00, 0x00, 0x00, 0x00,
        0x63, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x6d, 0x31, 0x00, 0x00, 0x00,
        0x04, 0x5b, 0x4b, 0xe8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x64, 0x03, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x18, 0x00, 0x31, 0x32, 0x33, 0x00, 0x00, 0x04, 0xa9, 0x53, 0xe8, 0x01, 0x00,
        0x00, 0x00, 0x00, 0x7f, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x73, 0x31,
        0x32, 0x00, 0x00, 0x04, 0x22, 0xf8, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x22, 0x04, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x68, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x55, 0x91, 0x69, 0x02, 0x00, 0x00, 0x00, 0x00, 0x0d,
        0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x62, 0x61, 0x73, 0x68, 0x72,
        0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xeb, 0x2d, 0xdf, 0x02, 0x00, 0x00, 0x00,
        0x00, 0x7c, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x32, 0x2e, 0x74, 0x78,
        0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x64, 0x51, 0xfb, 0x02, 0x00,
        0x00, 0x00, 0x00, 0xef, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x6e, 0x6f,
        0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x73, 0x68, 0x00, 0x00, 0x00, 0x08, 0x08, 0x66, 0x19,
        0x03, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00,
        0x2e, 0x62, 0x75, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x62,
        0x61, 0x34, 0x64, 0x38, 0x63, 0x63, 0x31, 0x37, 0x35, 0x64, 0x39, 0x66, 0x37, 0x38, 0x38,
        0x31, 0x35, 0x61, 0x31, 0x65, 0x39, 0x65, 0x33, 0x35, 0x66, 0x65, 0x64, 0x39, 0x65, 0x61,
        0x63, 0x39, 0x37, 0x61, 0x63, 0x36, 0x35, 0x30, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x08, 0xf2, 0xca, 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x25, 0x06, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x30, 0x00, 0x2e, 0x64, 0x6f, 0x6e, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61,
        0x67, 0x65, 0x5f, 0x6d, 0x79, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x63, 0x61, 0x6e, 0x61, 0x6c,
        0x00, 0x00, 0x00, 0x00, 0x08, 0x43, 0x36, 0x3b, 0x03, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x06,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x77, 0x61, 0x69, 0x74, 0x34, 0x2d, 0x77,
        0x61, 0x69, 0x74, 0x69, 0x64, 0x2d, 0x64, 0x65, 0x62, 0x75, 0x67, 0x00, 0x00, 0x00, 0x04,
        0xe4, 0x61, 0x40, 0x03, 0x00, 0x00, 0x00, 0x00, 0x5d, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x31, 0x33, 0x31, 0x00, 0x00, 0x04, 0xc4, 0x01, 0x52, 0x03, 0x00, 0x00,
        0x00, 0x00, 0xd1, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x2e, 0x62, 0x75,
        0x63, 0x6b, 0x5f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x32, 0x39, 0x31, 0x33,
        0x62, 0x37, 0x65, 0x36, 0x32, 0x65, 0x30, 0x65, 0x39, 0x30, 0x35, 0x65, 0x32, 0x34, 0x64,
        0x66, 0x62, 0x33, 0x64, 0x33, 0x30, 0x35, 0x62, 0x31, 0x30, 0x35, 0x39, 0x65, 0x36, 0x35,
        0x32, 0x66, 0x31, 0x62, 0x38, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x98,
        0xc6, 0x63, 0x03, 0x00, 0x00, 0x00, 0x00, 0xdd, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x20, 0x00, 0x66, 0x75, 0x74, 0x65, 0x78, 0x31, 0x2e, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x08, 0x39, 0x56, 0x7b, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe2, 0x06, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x20, 0x00, 0x68, 0x31, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x08, 0x2b, 0xd6, 0x7c, 0x03, 0x00, 0x00, 0x00, 0x00, 0xeb, 0x06, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6a, 0x73, 0x6f, 0x6e,
        0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xb4, 0xed,
        0x98, 0x03, 0x00, 0x00, 0x00, 0x00, 0xf6, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
        0x00, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x73,
        0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x74, 0x78, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x08, 0x8b, 0xf4, 0x98, 0x03, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x07, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x20, 0x00, 0x62, 0x31, 0x2e, 0x74, 0x78, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x08, 0x63, 0x30, 0xce, 0x03, 0x00, 0x00, 0x00, 0x00, 0x2f, 0x07, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x32, 0x32, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x08, 0xc2, 0x49, 0xd9, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1a, 0x08,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x2e, 0x76, 0x73, 0x63, 0x6f, 0x64, 0x65,
        0x2d, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x2d, 0x64, 0x61, 0x74, 0x61, 0x00, 0x04,
        0xc2, 0xc0, 0x38, 0x04, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x31, 0x33, 0x33, 0x00, 0x00, 0x04, 0xdc, 0xc5, 0x38, 0x04, 0x00, 0x00,
        0x00, 0x00, 0x0c, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x31, 0x33, 0x34,
        0x00, 0x00, 0x04, 0xf1, 0x00, 0x7b, 0x04, 0x00, 0x00, 0x00, 0x00, 0x29, 0x09, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x5f, 0x68,
        0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x25, 0x3c,
        0x8e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x52, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
        0x00, 0x31, 0x32, 0x34, 0x00, 0x00, 0x04, 0x38, 0x96, 0x95, 0x04, 0x00, 0x00, 0x00, 0x00,
        0x6e, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x63, 0x31, 0x2e, 0x70, 0x79,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x71, 0xc0, 0x95, 0x04, 0x00, 0x00,
        0x00, 0x00, 0x89, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x74, 0x31, 0x2e,
        0x73, 0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xbe, 0xd1, 0x96, 0x04,
        0x00, 0x00, 0x00, 0x00, 0xd7, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x30,
        0x31, 0x2d, 0x74, 0x6f, 0x6b, 0x69, 0x6f, 0x2d, 0x6d, 0x75, 0x74, 0x65, 0x78, 0x2e, 0x64,
        0x69, 0x66, 0x66, 0x00, 0x00, 0x08, 0xfa, 0xbc, 0xa1, 0x04, 0x00, 0x00, 0x00, 0x00, 0xf4,
        0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x64, 0x62, 0x67, 0x2d, 0x69, 0x6e,
        0x66, 0x6f, 0x2d, 0x33, 0x31, 0x39, 0x00, 0x04, 0x6a, 0x2c, 0xb8, 0x04, 0x00, 0x00, 0x00,
        0x00, 0x63, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x2e, 0x63, 0x6c, 0x61,
        0x6e, 0x67, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x9f, 0x73, 0xd5, 0x04, 0x00,
        0x00, 0x00, 0x00, 0x87, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x73, 0x79,
        0x73, 0x74, 0x65, 0x6d, 0x64, 0x2d, 0x64, 0x65, 0x62, 0x75, 0x67, 0x69, 0x6e, 0x66, 0x6f,
        0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x57, 0xc8,
        0xdb, 0x04, 0x00, 0x00, 0x00, 0x00, 0xa5, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x2e, 0x6c, 0x65, 0x73, 0x73, 0x68, 0x73, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
        0x36, 0xf2, 0xde, 0x04, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00,
        0x00, 0x20, 0x00, 0x2e, 0x76, 0x69, 0x6d, 0x69, 0x6e, 0x66, 0x6f, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x08,
    ])
    .0;

    // getdents64 from my homedir
    const HOME_DIRENTS64: &[u8] = &Aligned([
        0xf2, 0x5b, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x04, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x11, 0x79, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x04, 0x2e, 0x2e,
        0x00, 0x00, 0x00, 0x54, 0x5c, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x5c, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x0a, 0x6c, 0x6f, 0x67, 0x73, 0x00, 0x58,
        0x5c, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x28, 0x00, 0x0a, 0x52, 0x45, 0x41, 0x44, 0x4d, 0x45, 0x2d, 0x64, 0x6f, 0x74, 0x73, 0x79,
        0x6e, 0x63, 0x2e, 0x74, 0x78, 0x74, 0x00, 0x00, 0x00, 0x62, 0x5c, 0x79, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08, 0x2e, 0x6c,
        0x6f, 0x67, 0x69, 0x6e, 0x6f, 0x75, 0x74, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x37, 0x5d, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x04, 0x2e, 0x73, 0x73, 0x68, 0x00, 0x38, 0x5d,
        0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x08, 0x2e, 0x73, 0x63, 0x6d, 0x2e, 0x73, 0x71, 0x6c, 0x69, 0x74, 0x65, 0x00, 0x00,
        0x13, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x28, 0x00, 0x08, 0x2e, 0x64, 0x6f, 0x74, 0x73, 0x79, 0x6e, 0x63, 0x2d, 0x6d, 0x65,
        0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x00, 0x00, 0x00, 0x00, 0xab, 0x5e, 0x79, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x2e,
        0x62, 0x61, 0x73, 0x68, 0x5f, 0x6c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x00, 0xad, 0x5e, 0x79,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00,
        0x08, 0x2e, 0x62, 0x61, 0x73, 0x68, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb1, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x2e, 0x63, 0x6f, 0x6e,
        0x66, 0x69, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb8, 0x5e, 0x79, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0a, 0x2e, 0x65,
        0x6d, 0x61, 0x63, 0x73, 0x2e, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0xba, 0x5e, 0x79, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08,
        0x2e, 0x68, 0x67, 0x72, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbc, 0x5e,
        0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x08, 0x2e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x72, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00,
        0xbe, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x20, 0x00, 0x08, 0x2e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x00, 0x00, 0x00,
        0x00, 0x00, 0xc0, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x2e, 0x73, 0x75, 0x62, 0x76, 0x65, 0x72, 0x73, 0x69,
        0x6f, 0x6e, 0x00, 0x00, 0xca, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x2e, 0x74, 0x6d, 0x75, 0x78, 0x2e, 0x63,
        0x6f, 0x6e, 0x66, 0x00, 0x00, 0x00, 0xcc, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x04, 0x2e, 0x76, 0x69, 0x6d, 0x00,
        0xcf, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x20, 0x00, 0x08, 0x2e, 0x76, 0x69, 0x6d, 0x72, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0xd1, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x2e, 0x7a, 0x73, 0x68, 0x72, 0x63, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0xd3, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x2e, 0x61, 0x72, 0x63, 0x72, 0x63, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd7, 0x5e, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x2e, 0x67, 0x6e, 0x75, 0x70,
        0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1a, 0x62, 0x79, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x1d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x2e, 0x63, 0x6f,
        0x6d, 0x6d, 0x69, 0x74, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x00, 0x79, 0x65, 0x79, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0a, 0x66,
        0x62, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x6e, 0x79,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00,
        0x04, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x75,
        0xc0, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x20, 0x00, 0x04, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x61, 0x65, 0x6d, 0x6f, 0x6e, 0x00, 0x00,
        0x00, 0xc8, 0xc2, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x28, 0x00, 0x08, 0x2e, 0x62, 0x61, 0x73, 0x68, 0x5f, 0x68, 0x69, 0x73, 0x74,
        0x6f, 0x72, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0xc3, 0x79, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08,
        0x2e, 0x64, 0x6f, 0x74, 0x73, 0x79, 0x6e, 0x63, 0x2d, 0x67, 0x65, 0x74, 0x2d, 0x73, 0x75,
        0x63, 0x63, 0x65, 0x73, 0x73, 0x00, 0xa9, 0xc4, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x37,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x04, 0x2e, 0x76, 0x73, 0x63, 0x6f,
        0x64, 0x65, 0x2d, 0x66, 0x62, 0x2d, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x00, 0x00, 0x00,
        0x00, 0xb9, 0xc4, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x28, 0x00, 0x04, 0x2e, 0x76, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x2d, 0x72, 0x65,
        0x6d, 0x6f, 0x74, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdc, 0x82, 0x7d, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x04,
        0x2e, 0x76, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x2d, 0x66, 0x62, 0x2d, 0x69, 0x6e, 0x73, 0x69,
        0x64, 0x65, 0x72, 0x73, 0x00, 0x00, 0xdd, 0xb7, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x04, 0x67, 0x69, 0x74, 0x00, 0x00,
        0x5b, 0xd9, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x0a, 0x6e, 0x66, 0x73, 0x00, 0x00, 0x5c, 0xd9, 0x82, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x0a, 0x70, 0x75,
        0x62, 0x6c, 0x69, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6d, 0xd9, 0x82, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x04,
        0x74, 0x65, 0x73, 0x74, 0x00, 0x4d, 0xe2, 0x8f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb6, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x31, 0x2e, 0x64, 0x69, 0x66, 0x66,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0xbc, 0x9c, 0x00, 0x00, 0x00, 0x00, 0x00,
        0xb7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x2e, 0x6c, 0x6f, 0x63,
        0x61, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xbe, 0x9c, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x7b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x62, 0x75,
        0x69, 0x6c, 0x64, 0x2e, 0x6c, 0x6f, 0x67, 0x00, 0x00, 0x00, 0x00, 0x07, 0x50, 0x14, 0x01,
        0x00, 0x00, 0x00, 0x00, 0x7c, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08,
        0x65, 0x78, 0x74, 0x34, 0x2e, 0x69, 0x6d, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x50,
        0x14, 0x01, 0x00, 0x00, 0x00, 0x00, 0xb7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
        0x00, 0x04, 0x31, 0x33, 0x00, 0x00, 0x00, 0x3f, 0xc1, 0x2a, 0x01, 0x00, 0x00, 0x00, 0x00,
        0xb9, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x74, 0x65, 0x73, 0x74,
        0x2d, 0x31, 0x37, 0x33, 0x36, 0x35, 0x38, 0x32, 0x00, 0x36, 0x3b, 0x2b, 0x01, 0x00, 0x00,
        0x00, 0x00, 0xc8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x74, 0x65,
        0x73, 0x74, 0x2d, 0x31, 0x37, 0x34, 0x36, 0x37, 0x31, 0x33, 0x00, 0x84, 0xd4, 0x2b, 0x01,
        0x00, 0x00, 0x00, 0x00, 0xc9, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04,
        0x2e, 0x63, 0x61, 0x72, 0x67, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0xd4,
        0x2b, 0x01, 0x00, 0x00, 0x00, 0x00, 0xca, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x08, 0x2e, 0x7a, 0x73, 0x68, 0x65, 0x6e, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x89, 0xd4, 0x2b, 0x01, 0x00, 0x00, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x20, 0x00, 0x04, 0x2e, 0x72, 0x75, 0x73, 0x74, 0x75, 0x70, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0xb6, 0x8e, 0x53, 0x01, 0x00, 0x00, 0x00, 0x00, 0x26, 0x02, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x33, 0x2e, 0x74, 0x78, 0x74, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x86, 0xbf, 0x53, 0x01, 0x00, 0x00, 0x00, 0x00, 0x2d, 0x02, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x08, 0x61, 0x2e, 0x6f, 0x00, 0x00, 0x20, 0xc5,
        0x6a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x2e, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x08, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00,
        0x34, 0xc5, 0x6a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x5c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x04, 0x32, 0x32, 0x00, 0x00, 0x00, 0xd1, 0x4b, 0x7d, 0x01, 0x00, 0x00,
        0x00, 0x00, 0x7b, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x66, 0x61,
        0x6b, 0x65, 0x72, 0x6f, 0x6f, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x76, 0xb2, 0x9f, 0x01,
        0x00, 0x00, 0x00, 0x00, 0x94, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08,
        0x72, 0x70, 0x6d, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4d, 0xb5,
        0xa7, 0x01, 0x00, 0x00, 0x00, 0x00, 0x95, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28,
        0x00, 0x08, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e, 0x31, 0x2e, 0x72, 0x70, 0x6d,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0xfe, 0xa7, 0x01, 0x00, 0x00, 0x00,
        0x00, 0x96, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08, 0x73, 0x79, 0x73,
        0x74, 0x65, 0x6d, 0x64, 0x2e, 0x32, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x1b, 0x49, 0xa8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x97, 0x02, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e,
        0x33, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x67, 0x8e,
        0xa8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x98, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28,
        0x00, 0x08, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e, 0x34, 0x2e, 0x72, 0x70, 0x6d,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xdb, 0xa8, 0x01, 0x00, 0x00, 0x00,
        0x00, 0x99, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08, 0x73, 0x79, 0x73,
        0x74, 0x65, 0x6d, 0x64, 0x2e, 0x35, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x38, 0x20, 0xa9, 0x01, 0x00, 0x00, 0x00, 0x00, 0xa6, 0x02, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2e,
        0x36, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc2, 0x82,
        0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0xa7, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
        0x00, 0x08, 0x7a, 0x6c, 0x69, 0x62, 0x2d, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x2d, 0x31, 0x2e,
        0x32, 0x2e, 0x31, 0x31, 0x2d, 0x31, 0x36, 0x2e, 0x65, 0x6c, 0x38, 0x5f, 0x32, 0x2e, 0x78,
        0x38, 0x36, 0x5f, 0x36, 0x34, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0xe3, 0x82, 0xb0, 0x01, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x02, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x18, 0x00, 0x04, 0x7a, 0x6c, 0x00, 0x00, 0x00, 0xe5, 0xa3, 0xb0, 0x01,
        0x00, 0x00, 0x00, 0x00, 0x3d, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08,
        0x2e, 0x77, 0x67, 0x65, 0x74, 0x2d, 0x68, 0x73, 0x74, 0x73, 0x00, 0x00, 0x00, 0xf2, 0xa4,
        0xe2, 0x01, 0x00, 0x00, 0x00, 0x00, 0x44, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
        0x00, 0x04, 0x7a, 0x7a, 0x7a, 0x00, 0x00, 0x27, 0x78, 0xe6, 0x01, 0x00, 0x00, 0x00, 0x00,
        0x63, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x04, 0x6d, 0x31, 0x00, 0x00,
        0x00, 0x5b, 0x4b, 0xe8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x64, 0x03, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x18, 0x00, 0x04, 0x31, 0x32, 0x33, 0x00, 0x00, 0xa9, 0x53, 0xe8, 0x01, 0x00,
        0x00, 0x00, 0x00, 0x7f, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x04, 0x73,
        0x31, 0x32, 0x00, 0x00, 0x22, 0xf8, 0x0c, 0x02, 0x00, 0x00, 0x00, 0x00, 0x22, 0x04, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x2e, 0x68, 0x65, 0x72, 0x6d, 0x69, 0x74,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x91, 0x69, 0x02, 0x00, 0x00, 0x00, 0x00, 0x0d,
        0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x2e, 0x62, 0x61, 0x73, 0x68,
        0x72, 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xeb, 0x2d, 0xdf, 0x02, 0x00, 0x00, 0x00,
        0x00, 0x7c, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x32, 0x2e, 0x74,
        0x78, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x51, 0xfb, 0x02, 0x00,
        0x00, 0x00, 0x00, 0xef, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x6e,
        0x6f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x2e, 0x73, 0x68, 0x00, 0x00, 0x00, 0x08, 0x66, 0x19,
        0x03, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00,
        0x08, 0x2e, 0x62, 0x75, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x6f, 0x6b, 0x5f,
        0x62, 0x61, 0x34, 0x64, 0x38, 0x63, 0x63, 0x31, 0x37, 0x35, 0x64, 0x39, 0x66, 0x37, 0x38,
        0x38, 0x31, 0x35, 0x61, 0x31, 0x65, 0x39, 0x65, 0x33, 0x35, 0x66, 0x65, 0x64, 0x39, 0x65,
        0x61, 0x63, 0x39, 0x37, 0x61, 0x63, 0x36, 0x35, 0x30, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0xf2, 0xca, 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x25, 0x06, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x30, 0x00, 0x08, 0x2e, 0x64, 0x6f, 0x6e, 0x74, 0x5f, 0x6d, 0x61, 0x6e,
        0x61, 0x67, 0x65, 0x5f, 0x6d, 0x79, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x63, 0x61, 0x6e, 0x61,
        0x6c, 0x00, 0x00, 0x00, 0x00, 0x43, 0x36, 0x3b, 0x03, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x06,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x04, 0x77, 0x61, 0x69, 0x74, 0x34, 0x2d,
        0x77, 0x61, 0x69, 0x74, 0x69, 0x64, 0x2d, 0x64, 0x65, 0x62, 0x75, 0x67, 0x00, 0x00, 0x00,
        0xe4, 0x61, 0x40, 0x03, 0x00, 0x00, 0x00, 0x00, 0x5d, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x04, 0x31, 0x33, 0x31, 0x00, 0x00, 0xc4, 0x01, 0x52, 0x03, 0x00, 0x00,
        0x00, 0x00, 0xd1, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00, 0x08, 0x2e, 0x62,
        0x75, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x65, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x32, 0x39, 0x31,
        0x33, 0x62, 0x37, 0x65, 0x36, 0x32, 0x65, 0x30, 0x65, 0x39, 0x30, 0x35, 0x65, 0x32, 0x34,
        0x64, 0x66, 0x62, 0x33, 0x64, 0x33, 0x30, 0x35, 0x62, 0x31, 0x30, 0x35, 0x39, 0x65, 0x36,
        0x35, 0x32, 0x66, 0x31, 0x62, 0x38, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x98,
        0xc6, 0x63, 0x03, 0x00, 0x00, 0x00, 0x00, 0xdd, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x20, 0x00, 0x08, 0x66, 0x75, 0x74, 0x65, 0x78, 0x31, 0x2e, 0x63, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x39, 0x56, 0x7b, 0x03, 0x00, 0x00, 0x00, 0x00, 0xe2, 0x06, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x20, 0x00, 0x08, 0x68, 0x31, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x2b, 0xd6, 0x7c, 0x03, 0x00, 0x00, 0x00, 0x00, 0xeb, 0x06, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6a, 0x73, 0x6f,
        0x6e, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb4, 0xed,
        0x98, 0x03, 0x00, 0x00, 0x00, 0x00, 0xf6, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
        0x00, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f,
        0x73, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x74, 0x78, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x8b, 0xf4, 0x98, 0x03, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x07, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x20, 0x00, 0x08, 0x62, 0x31, 0x2e, 0x74, 0x78, 0x74, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x63, 0x30, 0xce, 0x03, 0x00, 0x00, 0x00, 0x00, 0x2f, 0x07, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x32, 0x32, 0x2e, 0x64, 0x69, 0x66, 0x66, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0xc2, 0x49, 0xd9, 0x03, 0x00, 0x00, 0x00, 0x00, 0x1a, 0x08,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x04, 0x2e, 0x76, 0x73, 0x63, 0x6f, 0x64,
        0x65, 0x2d, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x2d, 0x64, 0x61, 0x74, 0x61, 0x00,
        0xc2, 0xc0, 0x38, 0x04, 0x00, 0x00, 0x00, 0x00, 0x1b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x18, 0x00, 0x04, 0x31, 0x33, 0x33, 0x00, 0x00, 0xdc, 0xc5, 0x38, 0x04, 0x00, 0x00,
        0x00, 0x00, 0x0c, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x04, 0x31, 0x33,
        0x34, 0x00, 0x00, 0xf1, 0x00, 0x7b, 0x04, 0x00, 0x00, 0x00, 0x00, 0x29, 0x09, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08, 0x2e, 0x70, 0x79, 0x74, 0x68, 0x6f, 0x6e, 0x5f,
        0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, 0x3c,
        0x8e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x52, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18,
        0x00, 0x04, 0x31, 0x32, 0x34, 0x00, 0x00, 0x38, 0x96, 0x95, 0x04, 0x00, 0x00, 0x00, 0x00,
        0x6e, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x63, 0x31, 0x2e, 0x70,
        0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x71, 0xc0, 0x95, 0x04, 0x00, 0x00,
        0x00, 0x00, 0x89, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x74, 0x31,
        0x2e, 0x73, 0x68, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbe, 0xd1, 0x96, 0x04,
        0x00, 0x00, 0x00, 0x00, 0xd7, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x08,
        0x30, 0x31, 0x2d, 0x74, 0x6f, 0x6b, 0x69, 0x6f, 0x2d, 0x6d, 0x75, 0x74, 0x65, 0x78, 0x2e,
        0x64, 0x69, 0x66, 0x66, 0x00, 0x00, 0xfa, 0xbc, 0xa1, 0x04, 0x00, 0x00, 0x00, 0x00, 0xf4,
        0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x64, 0x62, 0x67, 0x2d, 0x69,
        0x6e, 0x66, 0x6f, 0x2d, 0x33, 0x31, 0x39, 0x00, 0x6a, 0x2c, 0xb8, 0x04, 0x00, 0x00, 0x00,
        0x00, 0x63, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x04, 0x2e, 0x63, 0x6c,
        0x61, 0x6e, 0x67, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9f, 0x73, 0xd5, 0x04, 0x00,
        0x00, 0x00, 0x00, 0x85, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x00, 0x08, 0x73,
        0x79, 0x73, 0x74, 0x65, 0x6d, 0x64, 0x2d, 0x64, 0x65, 0x62, 0x75, 0x67, 0x69, 0x6e, 0x66,
        0x6f, 0x2e, 0x72, 0x70, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x56, 0xc5,
        0xdb, 0x04, 0x00, 0x00, 0x00, 0x00, 0x87, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
        0x00, 0x08, 0x2e, 0x76, 0x69, 0x6d, 0x69, 0x6e, 0x66, 0x6f, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x57, 0xc8, 0xdb, 0x04, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x00, 0x00,
        0x00, 0x20, 0x00, 0x08, 0x2e, 0x6c, 0x65, 0x73, 0x73, 0x68, 0x73, 0x74, 0x00, 0x00, 0x00,
        0x00, 0x00,
    ])
    .0;

    #[test]
    fn dents_can_deserialize_serialize() {
        let res = unsafe { deserialize_dirents(HOME_DIRENTS) };
        let mut vv = vec![0; HOME_DIRENTS.len()];
        vv.reserve_exact(128);
        assert_eq!(
            unsafe { serialize_dirents(&res, vv.as_mut_slice()) },
            res.len()
        );
        assert_eq!(vv.as_slice(), HOME_DIRENTS);
    }

    #[test]
    fn dents64_can_deserialize_serialize() {
        let res = unsafe { deserialize_dirents64(HOME_DIRENTS64) };
        let mut vv = vec![0; HOME_DIRENTS64.len()];
        vv.reserve_exact(128);
        assert_eq!(
            unsafe { serialize_dirents64(&res, vv.as_mut_slice()) },
            res.len()
        );
        assert_eq!(vv.as_slice(), HOME_DIRENTS64);
    }

    #[test]
    fn dents_can_serialize_sort_deserialize() {
        let mut res = unsafe { deserialize_dirents(HOME_DIRENTS) };
        res.sort();
        let mut vv = vec![0; HOME_DIRENTS.len()];
        vv.reserve_exact(128);
        assert_eq!(
            unsafe { serialize_dirents(&res, vv.as_mut_slice()) },
            res.len()
        );
        let res2 = unsafe { deserialize_dirents(vv.as_slice()) };
        assert_eq!(res.len(), res2.len());
    }

    #[test]
    fn dents64_can_serialize_sort_deserialize() {
        let mut res = unsafe { deserialize_dirents64(HOME_DIRENTS64) };
        res.sort();
        let mut vv = vec![0; HOME_DIRENTS64.len()];
        vv.reserve_exact(128);
        assert_eq!(
            unsafe { serialize_dirents64(&res, vv.as_mut_slice()) },
            res.len()
        );
        let res2 = unsafe { deserialize_dirents64(vv.as_slice()) };
        assert_eq!(res.len(), res2.len());
    }
}
